#include <iostream>
#include <string>
struct A
{
    /* data */
    int a=0;
    ~A(){
        std::cout<<"~A"<<std::endl;
    }
};
struct B:public A{
    ~B(){
        std::cout<<"~B"<<std::endl;
    }
};
int main(int argc, char** argv)
{
    B b;
    return 0;
}